<ion-modal-view ng-controller="FormController">
    <ion-header-bar class="bar-energized-crm">
        <button class="button back-button buttons button-clear header-item" ng-click="onCancel()"><i class="icon ion-ios-arrow-back"></i>取消</button>
        <h1 class="title">{{form.title}}</h1>
        <button class="button button-clear" ng-click="onOk();">确定</button>
    </ion-header-bar>
    <ion-content class="crm-content" ng-switch="form.type">
        <ion-list type="card" ng-switch-when="MultiSelect">
            <ion-checkbox ng-repeat="item in form.dict" ng-model="item.checked">{{item.name}}</ion-checkbox>
            <ion-item class="item-input item-stacked-label crm-edit-label">
                <span class="input-label">其它原因</span>
                <textarea ng-model="form.otherValue" rows="4" placeholder="请输入其它原因" maxlength="100">
                </textarea>
            </ion-item>
        </ion-list>
    </ion-content>
</ion-modal-view>
